package dao.jpa;

import java.util.List;

import vo.Paper;
import dao.PaperDAO;

public class PaperDAOJpaImpl extends GenericDaoJpaImpl<Paper, Long> implements PaperDAO {

	public PaperDAOJpaImpl() {
		super(Paper.class);
	}

	public List<Paper> findAll() {
		return super.executeFinder("Paper.findAll");
	}

	public List<Paper> findAll(int start, int pageSize) {
		return super.executeFinderPage("Paper.findAll", start, pageSize);
	}

	public long findTotalCount() {
		return super.executeFinderCount("Paper.findTotalCount");
	}

	public List<Paper> findAllByTitle(int start, int pageSize, String keyword) {
		return super.executeFinderPage("Paper.findAllByTitle", start, pageSize, keyword);
	}

	public long findTotalCountByTitle(String keyword) {
		return super.executeFinderCount("Paper.findTotalCountByTitle", keyword);
	}

}
